home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7464 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.3 KB  |  34 lines

  1. Newsgroups: comp.lang.c
  2. Path: news.sprintlink.net!news1!news
  3. From: rclark@iquest.net (Robert B. Clark)
  4. Subject: Re: C beginner needs your help ASAP
  5. X-Nntp-Posting-Host: ind-002-236-112.iquest.net
  6. Message-ID: <3131dec0.13245822@news.iquest.net>
  7. Sender: news@iquest.net (News Admin)
  8. Organization: IQuest Internet, Inc.
  9. X-Newsreader: Forte Agent .99d/16.182
  10. References: <4g862f$p0b@risky.ecs.umass.edu> <3129dd8a.1042915@news.iquest.net> <312A5942.73EB@oc.com>
  11. Date: Mon, 26 Feb 1996 18:11:42 GMT
  12.  
  13. On Tue, 20 Feb 1996 17:29:06 -0600, Larry Weiss <lfw@oc.com> wrote:
  14.  
  15. >Robert B. Clark wrote:
  16. > > ... look up the
  17. > > tmpnam() function.  It will automatically increment filenames for you,
  18. > > making sure that the derived filename does not match any in the target
  19. >
  20. >Be aware that the C Standard does not guarantee any particular pattern
  21. >to the generated filename(s).
  22.  
  23. I realize that.  But if all the original poster wanted was to generate a
  24. temporary file name (for whatever purpose), the actual filename itself
  25. is really immaterial.  Given the pattern of the filenames that he asked
  26. for, it seemed possible.
  27.  
  28. Perhaps I should have said "automatically creates unique filenames"
  29. instead of "increment filenames for you"?  :-)
  30. --
  31. Robert B. Clark <rclark@iquest.net>
  32. "Be wary of strong spirits.  It can make you shoot at tax collectors...
  33. and miss." --RAH
  34.